[Backport 2.x] Create NamedRoute to map extension routes to a shortened name#7631
Merged
[Backport 2.x] Create NamedRoute to map extension routes to a shortened name#7631
Conversation
* WIP on rest layer authz Signed-off-by: Craig Perkins <cwperx@amazon.com> * Create PermissibleRoute Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update extension handshake Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add connectToNodeAsExtension in TransportService Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add to CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add to CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update RouteHandler Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update java docstrings Signed-off-by: Craig Perkins <cwperx@amazon.com> * Run spotlessApply Signed-off-by: Craig Perkins <cwperx@amazon.com> * Fix merge conflicts Signed-off-by: Craig Perkins <cwperx@amazon.com> * Rename to ProtectedRoute Signed-off-by: Craig Perkins <cwperx@amazon.com> * Create method to get extension settings from extensions.yml Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add ExtensionsManager.lookupExtensionSettings Signed-off-by: Craig Perkins <cwperx@amazon.com> * Small change to name Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add to CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> * Move extensionSettingsMap.put Signed-off-by: Craig Perkins <cwperx@amazon.com> * Re-run CI Signed-off-by: Craig Perkins <cwperx@amazon.com> * Address review feedback Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add test for ProtectedRoute Signed-off-by: Craig Perkins <cwperx@amazon.com> * spotlessApply Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add RouteHandlerTests Signed-off-by: Craig Perkins <cwperx@amazon.com> * Switch to NamedRoute and add validation for action naming Signed-off-by: Craig Perkins <cwperx@amazon.com> * Avoid magic numbers Signed-off-by: Craig Perkins <cwperx@amazon.com> * Remove @test annotation Signed-off-by: Craig Perkins <cwperx@amazon.com> * Address code review feedback Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update error message Signed-off-by: Craig Perkins <cwperx@amazon.com> * Check for REST Action name uniqueness across all registered actions Signed-off-by: Craig Perkins <cwperx@amazon.com> * minimize code in the test Signed-off-by: Craig Perkins <cwperx@amazon.com> * Update changelog Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add DynamicRouteRegistry Signed-off-by: Craig Perkins <cwperx@amazon.com> * Address code review feedback Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add mock DynamicRouteRegistry.class Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add RouteRegistry to DynamicActionModule Signed-off-by: Craig Perkins <cwperx@amazon.com> * Pass around dynamicActionRegistry instead of ActionModule Signed-off-by: Craig Perkins <cwperx@amazon.com> * Only pass dynamic action registry Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add DynamicActionRegistryTests for tests of dynamic registry Signed-off-by: Craig Perkins <cwperx@amazon.com> * Move CHANGELOG entry Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com> (cherry picked from commit 8470df6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
owaiskazi19
approved these changes
May 18, 2023
reta
approved these changes
May 18, 2023
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## 2.x #7631 +/- ##
============================================
+ Coverage 70.29% 70.34% +0.04%
+ Complexity 59951 59941 -10
============================================
Files 4882 4884 +2
Lines 288357 288428 +71
Branches 41935 41949 +14
============================================
+ Hits 202697 202884 +187
+ Misses 68619 68513 -106
+ Partials 17041 17031 -10
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport 8470df6 from #6870.